<template>
  <div id="app">
    <Header :key="updatakey1" @updatakey="updatakey" />
    <Nav />
    <router-view />
    <Footer />
    <Login @updatakey="updatakey" />
    <transition name="fade">
      <Toast v-show="$store.state.toast.show" />
    </transition>

    <!-- <router-link to="/">Home</router-link> | -->
  </div>
</template>
<script>
import Header from "@/components/Header.vue";
import Nav from "@/components/Nav.vue";
import Footer from "@/components/Footer.vue";
import Login from "@/components/Login.vue";
import Toast from "@/components/Toast.vue";
export default {
  components: {
    Header,
    Nav,
    Footer,
    Login,
    Toast,
  },
  data() {
    return {
      updatakey1: 0,
    };
  },
  methods: {
    updatakey() {
      this.updatakey1++;
    },
  },
};
</script>
<style lang="less">
@import "@/assets/base.less";
body {
  background-color: #f5f5f5;
}
.fade-enter-active,
.fade-leave-active {
  transition: opacity 1s;
}
.fade-enter,.fade-leave-to/* */ {
  opacity: 0;
}
</style>
